package com.itheima.aop;

import org.aspectj.lang.annotation.Aspect;
import org.aspectj.lang.annotation.Before;
import org.aspectj.lang.annotation.Pointcut;
import org.springframework.stereotype.Component;

/**
 * @author: dh
 * @date: 2023-10-31 16:27
 */
@Component
@Aspect
public class MyAdvice {

    @Pointcut("execution(* com.itheima.dao.impl.BookDaoImpl.update())")
    private void pt() {};


    @Before("pt()")
    public void method() {

        System.out.println(System.currentTimeMillis());
    }
}
